package com.worldcup.model.dto.question;

import com.worldcup.model.User;
import com.worldcup.model.question.QuestionMatchResult;
import lombok.Data;

/**
 * @author duwan.zq
 * @date 2019/03/31
 */
@Data
public class MatchResultSurveyDTO {

    private String openid;

    private String name;

    private String imgUrl;

    private String commonIdol;

    private String commonEnemy;

    private String commonMatch;

    public MatchResultSurveyDTO(User user, QuestionMatchResult matchResult) {
        this.openid = user.getOpenid();
        this.name = user.getName();
        this.imgUrl = user.getImgurl();
        this.commonIdol = matchResult.getCommonIdol();
        this.commonEnemy = matchResult.getCommonEnemy();
        this.commonMatch = matchResult.getCommonMatch();
    }
}
